<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.select_width{
   width:130px;
}
</style>

<script>
function    selectPsnCall(data) {
	$("#basicInfo123 input[id!='selectPsn']").each(function(){
		//$("input[id!='selectPsn']").val("");
		$(this).val("");
		$("input[id='advant_01']").attr("checked",false);
		$("input[id='advant_02']").attr("checked",false);
	}); 
	
	
	
	$(document).find("input[name$='psn_code']").val(data.person.psnCode);
	
		if (data.personExtend.basic_info.gender_value=='F') {
			$("input[id='advant_02']").attr("checked",true);
			$("#fzr_gender_value").val("F");
			$("#fzr_gender_name").val("女");
		} else { 
			$("input[id='advant_01']").attr("checked",true);
			$("#fzr_gender_value").val("M");
			$("#fzr_gender_name").val("男");
		} 

	$("#fzr_psnname").html(data.personExtend.basic_info.zh_name);
	$("#fzr_birthday").val(data.personExtend.basic_info.birthday);
	$("#fzr_degree").val(data.personExtend.basic_info.degree_value);
	$("#fzr_degree_name").val(data.personExtend.basic_info.degree_name);
	$("#fzr_degree_value").val(data.personExtend.basic_info.degree_value);
	$("#fzr_prof_title").val(data.personExtend.basic_info.prof_title_name);
	$("#fzr_prof_title_name").val(data.personExtend.basic_info.prof_title_name);
	$("#fzr_prof_title_value").val(data.personExtend.basic_info.prof_title_value);	
	$("#fzr_position").val(data.personExtend.basic_info.position);
	$("#fzr_card_code").val(data.personExtend.basic_info.card_code);
	$("#fzr_major_work").val(data.personExtend.contact.major_work); 
	$("#fzr_org_name").val(data.personExtend.basic_info.org_name);
	$("#fzr_tel_work").val(data.personExtend.contact.tel_work);
	$("#fzr_fax").val(data.personExtend.contact.fax);
	$("#fzr_mobile").val(data.personExtend.contact.mobile);
	$("#fzr_email").val(data.personExtend.contact.email);
	
	<security:authorize ifAnyGranted="A_MENU_MANAGE_19">
	$("#depart_code").val(data.person.deptCode);
	</security:authorize>
	
	tb_remove2();
}

</script>


<table class="t_css table01" width="100%" border="0" cellpadding="0" id="basicInfo123"
	cellspacing="1">
	<col style="width:18%"/>
	<col style="width:16%"/>
	<col style="width:16%"/>
	<col style="width:18%"/>
	<col style="width:16%"/>
	<col style="width:16%"/>
	<tr class="li_1">
		<td   colspan="6" class="t_bar2">${param.title}</td>
		
	</tr>
	
	<security:authorize ifNotGranted="A_DAILU_PROPOSAL">
	
	<tr class="li_2">
	
	    <td   align="right" >姓名：</td>
		<td  colspan="2">
			<span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>		
		</td>
		<td align="right">性别：</td>
		<td colspan="2">
		   <c:set var="gender_value" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/gender_value" /></c:set>
			<span name="proposal/fzr_gender_name" ><c:if test="${gender_value=='M'}">男</c:if><c:if test="${gender_value=='F'}">女</c:if></span>
			<input type="hidden" name="proposal/fzr_gender_value" value="${gender_value}"/>
		</td>
	</tr>
	<tr class="li_1">
		<td   align="right" >出生日期：</td>
		<td  colspan="2">
			<span name="proposal/fzr_birthday" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/birthday" /></span>
		</td>
		<td   align="right" >学位：</td>
		<td  colspan="2">
            <span name="proposal/fzr_degree_name" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/degree_name" /></span>
		</td>
	</tr>
	<tr class="li_2">
	<td  align="right" nowrap>职称：</td>
	<td colspan="2">
         <span name="proposal/fzr_prof_title_name" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/prof_title_name" /></span>
	</td>
	<td  align="right" nowrap>职务：</td>
	<td colspan="2">
			<span name="proposal/fzr_position" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/position" /></span>
	</td>
	</tr>
	<tr class="li_1">
	<td  align="right" nowrap>身份证号码：</td>
		<td colspan="2">
			 <span name="proposal/fzr_card_code" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/card_code" /></span>
		</td>
		<td  align="right"  ><span class="color_red">*</span>
		<c:choose>
		<c:when test="${sub_grant_code eq '3117'}">累计在工程中心工作时间（人/月）：</c:when>
		<c:when test="${sub_grant_code eq '2921'}">累计在实验室工作时间（人/月）：</c:when>
		<c:otherwise> 累计为本项目工作时间<br/>（人/月）：</c:otherwise>	
		</c:choose>
		</td>
		<td colspan="2">
			<input name="proposal/fzr_work_time" type="text" onfocus="InitInput.setNumber(this,7,2,0)" label="${param.title}-->累计为本项目工作时间"  class="input_css required" style="width:20%;text-align: right;" maxlength="20" value="<x:out select="$xmlData/data/proposal/fzr_work_time" />"/> 
		</td>
	</tr>
	
	
	
	<tr class="li_2">
	    <td  align="right" >从事专业：</td>
		<td colspan="5">
			 <span name="proposal/fzr_major_work" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/major_work" /></span>
		</td>
	</tr>
	
	<tr class="li_1">
	<td align="right">所在单位：</td>
	<td nowrap  colspan="5" >
	<span name="proposal/fzr_org_name" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/org_name" /></span>
	</td>
	</tr>
	<tr class="li_2">
	<td align="right">联系电话：</td>
	<td nowrap  colspan="2">
<%-- 	<c:set var="tel_work"><x:out select="$xmlData/data/proposal/fzr_tel_work" /></c:set>
	<c:if test="${empty tel_work }"><c:set var="tel_work"></c:set></c:if> --%>
	<span name="proposal/fzr_tel_work"  ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
	</td>
	<td align="right">传真号码：</td>
	<td nowrap  colspan="2">
	<%-- <c:set var="fax"><x:out select="$xmlData/data/proposal/fzr_fax" /></c:set>
	<c:if test="${empty fax }"><c:set var="fax"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/fax" /></c:set></c:if> --%>
	<span name="proposal/fzr_fax" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/fax" /></span>
	</td>
	</tr>
	<tr class="li_1">
	<td align="right">手机号码：</td>
	<td nowrap  colspan="2">
<%-- 	<c:set var="mobile"><x:out select="$xmlData/data/proposal/fzr_mobile" /></c:set>
	<c:if test="${empty mobile }"><c:set var="mobile"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></c:set></c:if> --%>
	<span name="proposal/fzr_mobile" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
	</td>
	<td align="right">电子邮箱：</td>
	<td nowrap  colspan="2">
<%-- 	<c:set var="email"><x:out select="$xmlData/data/proposal/fzr_email" /></c:set>
	<c:if test="${empty email }"><c:set var="email"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></c:set></c:if> --%>
	<span name="proposal/fzr_email" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
	</td>
	</tr>

	</security:authorize>
	

	<security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
	<tr class="li_2">
	
	    <td   align="right" ><span class="color_red">*</span>姓名：</td>
		<td  colspan="2">
			<span name="proposal/fzr_psnname" id="fzr_psnname" class="required" label="${param.title}-->负责人姓名"><x:out select="$xmlData/data/proposal/fzr_psnname" /></span>
			<span id="personSelect">
			<input type="button" class="button_02" style="height: 25px; padding: 1px;" id="selectPsn" value="设置项目负责人">
			<cpt:personSelect key="personSelect" addRole="3" psnCode="${param.psnCode }" callback="selectPsnCall" bindEvent="click" bindObject="selectPsn" title="设置项目负责人" fltFile="personSelector.ftl"></cpt:personSelect>
			</span>
				
			
		</td>
		<td align="right"><span class="color_red">*</span>性别：</td>
		<td nowrap colspan="2" valign="middle">
			<label> <input type="radio" class="do " id="advant_01" style="vertical-align: middle;" name="fzr_gender" label="男" value="M" /><span style="vertical-align: middle;">男</span></label> 
			<label> <input type="radio" class="do " id="advant_02" style="vertical-align: middle;" name="fzr_gender" label="女" value="F"  /><span style="vertical-align: middle;">女</span></label> 
			<input type="hidden" name="proposal/fzr_gender_value" id="fzr_gender_value" class="required" value="<x:out select="$xmlData/data/proposal/fzr_gender_value" />" label="${param.title}-->性别" /> 
			<input type="hidden" name="proposal/fzr_gender_name" id="fzr_gender_name" value="<x:out select="$xmlData/data/proposal/fzr_gender_name" />"  />
		</td>
			
	</tr>
	<tr class="li_1">
		<td   align="right" ><span class="color_red">*</span>出生日期：</td>
		<td colspan="2">
		<c:set var="fzr_birthday"><x:out select="$xmlData/data/proposal/fzr_birthday" /></c:set>
			<cpt:date id="fzr_birthday" name="proposal/fzr_birthday" value="${fzr_birthday}" className=" required date" label="${param.title}-->出生日期"></cpt:date> 
		</td>
		<td   align="right" ><span class="color_red">*</span>学位：</td>
		<td  colspan="2">
			<c:set var="fzr_degree_value"><x:out select="$xmlData/data/proposal/fzr_degree_value" /></c:set>
			<input name="proposal/fzr_degree_value" type="hidden" id="fzr_degree_value" value="<x:out select="$xmlData/data/proposal/fzr_degree_value" />" />
			<input name="proposal/fzr_degree_name" type="hidden" id="fzr_degree_name" value="<x:out select="$xmlData/data/proposal/fzr_degree_name" />" />
			<cpt:select id="fzr_degree" key="degree" onChange="initControlValue('this.id')" className="selectWidth2 required" label="${param.title}-->学位" value="${fzr_degree_value}" style="width:35%;" ></cpt:select> 		
		</td>
	</tr>
	<tr class="li_2">
	<td  align="right" nowrap><span class="color_red">*</span>职称：</td>
	<td colspan="2">
		<c:set var="fzr_prof_title">{'id':'<x:out select="$xmlData/data/proposal/fzr_prof_title_value" />','name':'<x:out select="$xmlData/data/proposal/fzr_prof_title_name" />'}</c:set>
      <cpt:tree key="prof_title" cacheable="false" className="hn_iuput_kuang required selectWidth3" readonly="true" value="${fzr_prof_title}" label="${param.title}-->职称" id="fzr_prof_title" name="industryName" showPattern="all" shieldPattern="0" onClick="initTreeValue2" ></cpt:tree>
	  	<input type="hidden" name="proposal/fzr_prof_title_value" id="fzr_prof_title_value" value="<x:out select="$xmlData/data/proposal/fzr_prof_title_value" />" />
	   <input type="hidden" name="proposal/fzr_prof_title_name" id="fzr_prof_title_name" value="<x:out select="$xmlData/data/proposal/fzr_prof_title_name" />"/>	</td>
	<td  align="right" nowrap><span class="color_red">*</span>职务：</td>
	<td colspan="2">
		<input type="text" name="proposal/fzr_position" id="fzr_position" class="input_css required" value="<x:out select="$xmlData/data/proposal/fzr_position" />" label="${param.title}-->职务"  style="width:30%;"/>
	</td>
	</tr>
	<tr class="li_1">
	<td  align="right" nowrap><span class="color_red">*</span>身份证号码：</td>
		<td colspan="2">
		<input type="text" name="proposal/fzr_card_code" id="fzr_card_code" class="idCard required" value="<x:out select="$xmlData/data/proposal/fzr_card_code" />" label="${param.title}-->身份证号码" />
		</td>
		<td  align="right"  ><span class="color_red">*</span>
		<c:choose>
		<c:when test="${sub_grant_code eq '3117'}">累计在工程中心工作时间（人/月）：</c:when>
		<c:when test="${sub_grant_code eq '2921'}">累计在实验室工作时间（人/月）：</c:when>
		<c:otherwise> 累计为本项目工作时间<br/>（人/月）：</c:otherwise>	
		</c:choose>
		</td>
		<td colspan="2">
			<input id="fzr_work_time" name="proposal/fzr_work_time" type="text" onfocus="InitInput.setNumber(this,7,2,0)" label="${param.title}-->累计为本项目工作时间"  class="input_css required" style="width:30%;text-align: right;" maxlength="20" value="<x:out select="$xmlData/data/proposal/fzr_work_time" />"/> 
		</td>
	</tr>
	
	
	
	<tr class="li_2">
	    <td  align="right" ><span class="color_red">*</span>从事专业：</td>
		<td colspan="5">
		<input type="text" name="proposal/fzr_major_work" id="fzr_major_work" class="input_css required" value="<x:out select="$xmlData/data/proposal/fzr_major_work" />" label="${param.title}-->从事专业" />
		</td>
	</tr>
	
	
	<tr class="li_1">
	<td align="right"><span class="color_red">*</span>所在单位：</td>
	<td nowrap  colspan="5" >
	<%-- <span name="proposal/fzr_org_name" id="fzr_org_name"><x:out select="$xmlData/data/proposal/fzr_org_name" /></span> --%>
	<input type="text" name="proposal/fzr_org_name" id="fzr_org_name" class="input_css required" value="<x:out select="$xmlData/data/proposal/fzr_org_name" />" label="${param.title}-->所在单位" />
	</td>
	</tr>
	<tr class="li_2">
	<td align="right"><span class="color_red">*</span>联系电话：</td>
	<td nowrap  colspan="2">
	<%-- <span name="proposal/fzr_tel_work"  id="fzr_tel_work"><x:out select="$xmlData/data/proposal/fzr_tel_work" /></span> --%>
	<input type="text" name="proposal/fzr_tel_work" id="fzr_tel_work" class="input_css required" value="<x:out select="$xmlData/data/proposal/fzr_tel_work" />" label="${param.title}-->联系电话" />
	</td>
	<td align="right"><span class="color_red">*</span>传真号码：</td>
	<td nowrap  colspan="2">
	<%-- <span name="proposal/fzr_fax" id="fzr_fax"><x:out select="$xmlData/data/proposal/fzr_fax" /></span> --%>
	<input type="text" name="proposal/fzr_fax" id="fzr_fax" class="input_css required" value="<x:out select="$xmlData/data/proposal/fzr_fax" />" label="${param.title}-->传真号码" />
	</td>
	</tr>
	<tr class="li_1">
	<td align="right"><span class="color_red">*</span>手机号码：</td>
	<td nowrap  colspan="2">
	<%-- <span name="proposal/fzr_mobile" id="fzr_mobile"><x:out select="$xmlData/data/proposal/fzr_mobile" /></span> --%>
	<input type="text" name="proposal/fzr_mobile" id="fzr_mobile" class="input_css mobile required" onfocus="InitInput.setNumber(this,11,0,0)" value="<x:out select="$xmlData/data/proposal/fzr_mobile" />" label="${param.title}-->手机号码" />
	</td>
	<td align="right"><span class="color_red">*</span>电子邮箱：</td>
	<td nowrap  colspan="2">
	<%-- <span name="proposal/fzr_email" id="fzr_email"><x:out select="$xmlData/data/proposal/fzr_email" /></span> --%>
	<input type="text" name="proposal/fzr_email" id="fzr_email" class="input_css email required" value="<x:out select="$xmlData/data/proposal/fzr_email" />" label="${param.title}-->电子邮箱" />
	</td>
	</tr>
	</security:authorize>
	</table>
	<br/>
